package com.neural.metric;

import java.util.List;

public class MinimumMetric extends Metric {

	public MinimumMetric() {
		super("minimum");
	}

	@Override
	public Double getValueFor(List<Double> distances) {
		Double value = distances.get(0);
		for (Double dist : distances) {
			if (value > dist) {
				value = dist;
			}
		}
		return value;
	}
}